# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-iso3166
_pkgname=iso3166
pkgver=2.1.1
pkgrel=5
pkgdesc='Self-contained ISO 3166-1 country definitions.'
arch=('any')
url='https://pypi.org/project/iso3166/#files'
license=('MIT')
depends=('python')
makedepends=('python-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('b427c58ab44abd21a985b0d2b0ea48576cd0fd0d4383d7c53492961d3649c7829acebff66984ce74a02b4f3315c3cfc57dc29fd033f6d6dd7606aca43bfb6401')

build() {
  cd "$_pkgname-$pkgver"

  python setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

